﻿using System.Collections.Generic;
using Kobets.Automation.Chimera.Common;

namespace Kobets.Automation.Chimera.Orchestrator.Shared
{
    public class TestComparer : IEqualityComparer<Tests>
    {
        public bool Equals(Tests x, Tests y)
        {
            return x.ProductName == y.ProductName;
        }

        public int GetHashCode(Tests obj)
        {
            return obj.ProductName == null ? 0 : obj.ProductName.GetHashCode();
        }
    }
}
